home *** CD-ROM | disk | FTP | other *** search
/ Giga Games 1 / Giga Games.iso / net / usenet / volume9 / adl2 / patch1 < prev   
Encoding:
Internet Message Format  |  1990-07-27  |  3.3 KB

  1. Path: uunet!zephyr.ens.tek.com!tekred!saab!billr
  2. From: billr@saab.CNA.TEK.COM (Bill Randle)
  3. Newsgroups: comp.sources.games
  4. Subject: v11i002:  adl2 - yet another adventure definition system, Patch1
  5. Message-ID: <6031@tekred.CNA.TEK.COM>
  6. Date: 26 Jul 90 22:49:47 GMT
  7. Sender: news@tekred.CNA.TEK.COM
  8. Lines: 113
  9. Approved: billr@saab.CNA.TEK.COM
  10.  
  11. Submitted-by: David Goodenough <dg%pallio.UUCP@xait.xerox.COM>
  12. Posting-number: Volume 11, Issue 2
  13. Archive-name: adl2/Patch1
  14. Patch-To: adl2: Volume 9, Issue 98-99
  15.  
  16.     [This is collected set of patches from the net. One is
  17.      from the original author; the other two are from other
  18.      netters. If I missed some, please let me know or send me
  19.      the diffs.  -br]
  20.  
  21. #! /bin/sh
  22. # This is a shell archive.  Remove anything before this line, then unpack
  23. # it by saving it into a file and typing "sh file".  To overwrite existing
  24. # files, type "sh file -c".  You can also feed this as standard input via
  25. # unshar, or by typing "sh <file", e.g..  If this archive is complete, you
  26. # will see the following message at the end:
  27. #        "End of shell archive."
  28. # Contents:  patches01
  29. # Wrapped by billr@saab on Thu Jul 26 15:49:21 1990
  30. PATH=/bin:/usr/bin:/usr/ucb ; export PATH
  31. if test -f 'patches01' -a "${1}" != "-c" ; then 
  32.   echo shar: Will not clobber existing file \"'patches01'\"
  33. else
  34. echo shar: Extracting \"'patches01'\" \(1684 characters\)
  35. sed "s/^X//" >'patches01' <<'END_OF_FILE'
  36. X*** config.h.orig    Thu May 17 10:47:23 1990
  37. X--- config.h    Thu Jul 26 15:44:48 1990
  38. X***************
  39. X*** 8,15 ****
  40. X--- 8,18 ----
  41. X  
  42. X  #include    <ctype.h>
  43. X  #include    <fcntl.h>
  44. X+ 
  45. X+ #ifndef BSD
  46. X  #include    <unistd.h>
  47. X  #include    <malloc.h>
  48. X+ #endif
  49. X  
  50. X  /*
  51. X   * CREAT(filename) will make the file anew
  52. X***************
  53. X*** 27,32 ****
  54. X--- 30,39 ----
  55. X   * SEEK(fd, pos) will seek to pos * 128 within the file
  56. X   */
  57. X  
  58. X+ #ifndef SEEK_SET
  59. X+ #define SEEK_SET  0
  60. X+ #endif
  61. X+ 
  62. X  #define    SEEK(fd, pos)    lseek((fd), (pos) * 128, SEEK_SET)
  63. X  
  64. X  /*
  65. X***************
  66. X*** 92,97 ****
  67. X--- 99,108 ----
  68. X  /*
  69. X   * alloc(n) should allocate n bytes
  70. X   */
  71. X+ 
  72. X+ #ifdef BSD
  73. X+ extern char *malloc()
  74. X+ #endif
  75. X  
  76. X  #define    alloc(n)    (malloc((n)))
  77. X  
  78. X*** play.c.orig    Tue May 22 08:16:51 1990
  79. X--- play.c    Thu Jul 26 15:45:42 1990
  80. X***************
  81. X*** 849,855 ****
  82. X       {
  83. X          v = tnum >> 7 & 63;
  84. X          n = tnum & 127;
  85. X!         if (n == (-3 & 63))
  86. X            n = uloc;
  87. X          if (tnum & 0x2000)
  88. X            return(((v == (-1 & 63)) ? uloc : (items[v]._iloc & 127)) != n);
  89. X--- 849,855 ----
  90. X       {
  91. X          v = tnum >> 7 & 63;
  92. X          n = tnum & 127;
  93. X!         if (n == (-3 & 127))
  94. X            n = uloc;
  95. X          if (tnum & 0x2000)
  96. X            return(((v == (-1 & 63)) ? uloc : (items[v]._iloc & 127)) != n);
  97. X*** star.src.orig    Wed May 16 16:47:17 1990
  98. X--- star.src    Thu Jul 26 15:36:28 1990
  99. X***************
  100. X*** 725,731 ****
  101. X  i vc=5        ; ship blown away
  102. X      t "35
  103. X  e        ; k ship scanned once, tell some more
  104. X!     t "36    ; talk about the crew
  105. X  .
  106. X  
  107. X  # now the planet locations
  108. X--- 725,731 ----
  109. X  i vc=5        ; ship blown away
  110. X      t "35
  111. X  e        ; k ship scanned once, tell some more
  112. X!     t "36 vc=3    ; talk about the crew
  113. X  .
  114. X  
  115. X  # now the planet locations
  116. END_OF_FILE
  117. if test 1684 -ne `wc -c <'patches01'`; then
  118.     echo shar: \"'patches01'\" unpacked with wrong size!
  119. fi
  120. # end of 'patches01'
  121. fi
  122. echo shar: End of shell archive.
  123. exit 0
  124.